#
# Be sure to run `pod lib lint DGGUISpaceSDK.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'DGGUISpaceSDK'
  s.version          = '1.0.2'
  s.summary          = 'A short description of DGGUISpaceSDK.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/wumingpeng/DGGUISpaceSDK'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '伍明鹏' => '505490956@qq.com' }
  s.source           = { :git => 'https://gitee.com/wumingpeng/DGGUISpaceSDK.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '9.0'
  
  s.static_framework = true
  
  # 工程pch文件
  s.prefix_header_file = 'DGGUISpaceSDK/Classes/PCH/DGGUISpaceSDKPrefixHeader.pch'

  s.source_files = ['DGGUISpaceSDK/Classes/DGGUISpaceSDK.h','DGGUISpaceSDK/Classes/PCH/DGGUISpaceSDKPrefixHeader.h']
  

  s.subspec 'PullDownMenuToolBar' do |pdmtb|
    pdmtb.source_files = 'DGGUISpaceSDK/Classes/PullDownMenuToolBar/*.{h,m}'
  end
  
  s.subspec 'PCH' do |ph|
    ph.source_files  = 'DGGUISpaceSDK/Classes/PCH/DGGUISpaceSDKPrefixHeader.h'
  end
  
  s.subspec 'ActionSheet' do |as|
    as.source_files  = 'DGGUISpaceSDK/Classes/ActionSheet/*.{h,m}'
    as.dependency 'DGGUISpaceSDK/PCH'
  end
  
  s.subspec 'PickerView' do |pv|
    pv.source_files  = 'DGGUISpaceSDK/Classes/PickerView/*.{h,m}'
    pv.dependency 'DGGUISpaceSDK/PCH'
#    pv.resource = 'DGGUISpaceSDK/Assets/PickerView/*.xib'
    pv.resource_bundles = {
      'PickerViewBundle' => ['DGGUISpaceSDK/Assets/PickerView/*.xib']
    }
  end
  
  s.subspec 'AddressSelector' do |rs|
    rs.source_files  = 'DGGUISpaceSDK/Classes/AddressSelector/*.{h,m}'
    rs.dependency 'DGGUISpaceSDK/PCH'
#    rs.resource = 'DGGUISpaceSDK/Assets/AddressSelector/*.xib'
    rs.resource_bundles = {
      'AddressSelectorBundle' => ['DGGUISpaceSDK/Assets/AddressSelector/*.xib']
    }
  end
  
  s.subspec 'PayInputAlertView' do |pa|
    pa.source_files  = 'DGGUISpaceSDK/Classes/PayInputAlertView/*.{h,m}'
    pa.dependency 'DGGUISpaceSDK/PCH'
  end
  s.subspec 'PopMenu' do |pp|
    pp.source_files  = 'DGGUISpaceSDK/Classes/PopMenu/*.{h,m}'
    pp.dependency 'DGGUISpaceSDK/PCH'
  end
  s.subspec 'PageView' do |pw|
    pw.source_files  = 'DGGUISpaceSDK/Classes/PageView/*.{h,m}'
    pw.dependency 'DGGUISpaceSDK/PCH'
  end
  
  s.subspec 'MutilLevelPullMenu' do |mp|
    mp.source_files  = 'DGGUISpaceSDK/Classes/MutilLevelPullMenu/*.{h,m}'
    mp.dependency 'DGGUISpaceSDK/PCH'
  end
  
  s.subspec 'ChooseCollctionMenu' do |cc|
      cc.source_files  = 'DGGUISpaceSDK/Classes/ChooseCollctionMenu/*.{h,m}'
#      cc.resources = 'DGGUISpaceSDK/Assets/ChooseCollctionMenu/*.{xib,xcassets}'
      cc.resource_bundles = {
        'ChooseCollctionMenuBundle' => ['DGGUISpaceSDK/Assets/ChooseCollctionMenu/*.{xib,png,xcassets}']
      }
      cc.dependency 'DGGUISpaceSDK/PCH'
  end
  
  s.dependency 'DGGUIKit'
end
